package com.rentcars.service;

import com.github.pagehelper.PageInfo;
import com.rentcars.entity.Baclist;

import java.util.List;

/**
 * @author 任梦强
 */
public interface BacListService {
    /**
     * 分页查询显示
     * @param curr
     * @param pageSize
     * @return
     */
    PageInfo<Baclist> selectBacList(Baclist baclist,Integer curr,Integer pageSize);

    /**
     * 添加黑名单信息
     * @param baclist
     * @return
     */
    int insertSelective(Baclist baclist);

    /**
     *根据Id查询当前列
     * @param bid
     * @return
     */
    Baclist selectById(String bid);


    /**
     * 修改黑名单
     * @param baclist
     * @return
     */
    int updateByPrimaryKey(Baclist baclist);

    /**
     * 根据ID删除所在行的数据
     * @param bid
     * @return
     */
    int deleteByPrimaryKey(String bid);


    /**
     * 批量删除
     * @param bidList
     * @return
     */
    int deleteBacList(List<String> bidList);

}
